using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Cafe
{
    public partial class FrmNhapKey : Form
    {


        public FrmNhapKey()
        {
            InitializeComponent();
        }

        private void btnTiepTuc_Click(object sender, EventArgs e)
        {
            Chuoi.EncryptDecrypt ed = new Chuoi.EncryptDecrypt();
            global::Cafe.Properties.Settings.Default.key = ed.EncryptText(txtKey.Text);
           // global::Cafe.Properties.Settings.Default.key = txtKey.Text;
            global::Cafe.Properties.Settings.Default.Save();
            this.Close();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Environment.Exit(0);
        }

        private void FrmNhapKey_Load(object sender, EventArgs e)
        {

        }
    }
}